#ifndef M0WIG_H
#define M0WIG_H

#include <QWidget>
#include "mybtn.h"

namespace Ui {
class M0Wig;
}

class M0Wig : public QWidget
{
    Q_OBJECT

public:
    explicit M0Wig(QWidget *parent = 0);
    ~M0Wig();

private:
    Ui::M0Wig *ui;
    bool led1_state;
    bool led2_state;
    bool fan1_state;
    bool wat1_state;


    mybtn *led1_btn; //照明1
    mybtn *led2_btn; //照明2
    mybtn *fan_btn; //风扇
    mybtn *wat_btn; //灌溉

public slots:
    void ledbtn1_slots();
    void ledbtn2_slots();
    void fanbtn_slots();
    void watbtn_slots();

    void m0msg(const QByteArray &msg_t);

};

#endif // M0WIG_H
